package com.zretc.service.impl;

import java.util.List;
import java.util.Map;

import com.zretc.dao.CommentDao;
import com.zretc.dao.impl.CommentDaoImpl;
import com.zretc.entity.Comment;
import com.zretc.service.CommentService;
import com.zretc.util.PageInfo;

/**
 * 评论Comment服务层实现类
 * @author Administrator
 *
 */
public class CommentServiceImpl implements CommentService {
	private CommentDao commentDao = new CommentDaoImpl();
	@Override
	public int addComment(Comment comment) {
		
		return commentDao.insertComent(comment);
	}
	@Override
	public PageInfo<Comment> getCommentBySongId(Map<String, String> map) {
		return commentDao.findCommentBySongId(map);
	}
	
}
